﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;

public class GameplayUI : MonoBehaviour
{
	
	public PopupWin popupWin;
	public PopupPause popupPause;
	public static GameplayUI instance;
	public TextMeshPro tStage, tMove;

	void Awake ()
	{
		instance = this;
	}

	public void Pause ()
	{
		AudioManager.instance.PlaySound (AudioClipType.SE_Enter);
		if (GameManager.gameState == GameState.PLAYING) {
			
			GameManager.gameState = GameState.PAUSING;
			popupPause.gameObject.SetActive (true);
			//AdsControl.Instance.ShowInterstitial ();
		}
	}

}
